package com.xy;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/10 14:28
 * @description
 */
public class Client {
    public static void main(String[] args) {
        // 传统的方法
        int count = 1;
        Sheep sheep = new Sheep("tom", 1, "白色");
        System.out.println(count++ + "\t" + sheep);
        for (int i = 0; i < 9; i++) {
            System.out.println(count++ + "\t" + new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor()));
        }
    }
}
